package com.example.orderfoodsystem22201310liuziming.repository;

import com.example.orderfoodsystem22201310liuziming.entity.shoppingorder;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import javax.transaction.Transactional;
import java.util.Iterator;
import java.util.List;

public interface OrderRepository extends PagingAndSortingRepository<shoppingorder,Integer> {
    @Transactional
    void deleteByFoodname(String Name);
    shoppingorder findByFoodname(String Name);
    List findAllByUsername(String username);
    shoppingorder findAllByFoodID(int id);
}
